package org.hcyspartnoc.demo.pojo.vo.system;

import com.baomidou.mybatisplus.annotation.TableField;
import jakarta.validation.constraints.NotBlank;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
@Data
@NoArgsConstructor
public class SysUserVo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    private Integer id;
    @TableField("account")
    private String account;
    @TableField("nickname")
    private String nickname;
    @NotBlank
    private  String password;
    @TableField("roleNames")
    private List<String> roleNames;
    private ArrayList<SysRolesVo> roles;
    private String formatCreateTime;
    private String formatLastLoginTime;
    private Integer status;
    private String token;
}
